<template>
    <div class="container">
        <Category title="游戏">
            <template slot-scope="{games}">
                <ul>
                    <li v-for="(game,index) in games" :key="index">{{ game }}</li>
                </ul>
            </template>

        </Category>
        <Category title="游戏">
            <template scope="{games}">
                <ol>
                    <li style="color: red" v-for="(game,index) in games" :key="index">{{ game }}</li>
                </ol>
            </template>

        </Category>
        <Category title="游戏">
            <template slot-scope="{games}">
                <h4 v-for="(game,index) in games" :key="index">{{ game }}</h4>
            </template>

        </Category>

    </div>
</template>

<script>
    import Count from '@/components/Count.vue'

    export default {
        name: 'App',
        components: {Category: Count},

    }
</script>

<style scoped>
    .container, .footer {
        display: flex;
        justify-content: space-around;
    }


</style>
